import Vue from 'vue'
import Router from 'vue-router'
import IssureManagement from '@/components/issureManagement/IssureMain'
import ContentManager from '@/components/contentManager/ContentMain'
import OperrationManager from '@/components/operrationManager/OperrationMain'
import SettleAccountsManager from '@/components/settleAccountsManager/SettleAccountsMain'
import UserManager from '@/components/userManager/UserMain'
import AdvertisementManager from '@/components/advertisementManager/AdvertisementMain'
import CmsManager from '@/components/cmsManager/CmsMain'
import DetailView from '@/components/userManager/DetailView'
import VuserManager from '@/components/userManager/VuserManager'
import VuserApplyDetail from '@/components/userManager/VuserApplyDetail'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/issureManager',
      component: IssureManagement
    },
    {
      path: '/contentManager',
      component: ContentManager
    },
    {
      path: '/operrationManager',
      component: OperrationManager
    },
    {
      path: '/settleAccountsManager',
      component: SettleAccountsManager
    },
    {
      path: '/userManager/:isV',
      component: UserManager,
      name: 'userManager'
    },
    {
      path: '/vuserManager',
      component: VuserManager,
      name: 'vuserManager'
    },
    {
      path: '/userDetail/:id/:isV',
      component: DetailView,
      name: 'userDetail'
    },
    {
      path: '/userApplyDetail/:id',
      component: VuserApplyDetail,
      name: 'userApplyDetail'
    },
    {
      path: '/backUserManager',
      component: UserManager
    },
    {
      path: '/advertisementManager',
      component: AdvertisementManager
    },
    {
      path: '/cmsManager',
      component: CmsManager
    }
  ]
})
